package Test2;

/**
 * @Author admin
 * @Date 2019/3/15 9:21
 */
public class Bank {
    private String name;
    private String chname;
    private int password;
    private double zhye;
    private double jye;

    public Bank() {
    }

    public Bank(String name, String chname, int password, double zhye, double jye) {
        this.name = name;
        this.chname = chname;
        this.password = password;
        this.zhye = zhye;
        this.jye = jye;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setChname(String chname) {
        this.chname = chname;
    }

    public void setPassword(int password) {
        this.password = password;
    }

    public void setZhye(double zhye) {
        this.zhye = zhye;
    }

    public void setJye(double jye) {
        this.jye = jye;
    }

    public String getName() {
        return name;
    }

    public String getChname() {
        return chname;
    }

    public int getPassword() {
        return password;
    }

    public double getZhye() {
        return zhye;
    }

    public double getJye() {
        return jye;
    }
    void welcome(){
        System.out.println("欢迎来到招商银行——————");
    }
    void bye(){
        System.out.println("请携带好随身财物,欢迎下次光临——————");
    }
    void kaihu(String chname,int password,double zhye){
        this.chname=chname;
        this.password=password;
        this.zhye=zhye;
        this.jye=jye-10;
    }
    void cunqian(int password, int jye){

    }

}
